'use strict';

module.exports = app => {
  const { router, controller: ctrl } = app;
  router.get('/default/index', ctrl.default.home.index);
  router.get('/default/getArticleList', ctrl.default.home.getArticleList);
  router.get('/default/getArticleById/:id', ctrl.default.home.getArticleById);
  router.get('/default/getMiQuanList', ctrl.default.home.getMiQuanList);
  router.get('/default/getShareTopicListById/:id', ctrl.default.home.getShareTopicListById);
  router.get('/default/getShareItemById/:id', ctrl.default.home.getShareItemById);
  router.get('/default/getShareTopicList', ctrl.default.home.getShareTopicList);
  router.post('/default/login', ctrl.default.home.Login);
  router.post('/default/optionsFile', ctrl.default.home.OptionsFile);
  router.post('/default/uploadFile', ctrl.default.home.UploadFile);
  router.post('/default/htmlToWord', ctrl.default.home.htmlToWord);
};
